'''
Created on 14/04/2013

@author: victor
'''

from flask_mail import Mail
from pm import app
from pm.config import Development

#app.add_url_rule('/asd', view_func=login)

#print app.url_map
app.config.from_object(Development)

mail = Mail(app)
app.config.update(
                  #MAIL SETTINGS
                  MAIL_SERVER='smtp.gmail.com',
                MAIL_PORT=465,
                MAIL_USE_SSL=True,
                MAIL_USERNAME = 'phetamanager@gmail.com',
                MAIL_PASSWORD = 'phetamanager2013is2'
                  )
mail = Mail(app)

app.run()#app.config.get('SERVER_NAME'), app.config.get('SERVER_PORT')